package com.zhangtao.demo.common.enums;

public enum ResultStatus {

	SUCCESS("0", "成功"),
	FAILED("1", "失败"),
	PARAM_EXP("2", "缺少必填参数"),
	UNSURPORT_COMMAND("10002", "不支持的指令"),
	BIZ_FAILURE("3","业务校验失败：%s"),
	NO_DATA("11000","没有查询到数据"),
    LOGIN_FAILED("11005", "用户名或密码异常"),
    UNEXIST_PHONE("11006", "用户不存在"),
    SYSTEM_EXP("11999","系统内部错误"),
    ;

	private String code;
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	private String description;
	ResultStatus(String code, String des) {
		setCode(code);
		setDescription(des);
	}
}
